package start.service;

import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import start.entity.Book;
import start.entity.UserDto;

import javax.annotation.Resource;

@Slf4j
@Service
//CacheConfig(cacheNames = {"userDto"})
public class RedisT02Service {

    @Resource
    private RedisTemplate<String, Integer> redisTemplate;

    @Autowired
    private TestService<Book> tmp;

    //@Cacheable
    public void test(){
        log.info(redisTemplate.toString());

        tmp.execute(new Book());
    }


}
